package vip.liux.backend.adapter.controllers.gen;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.liux.backend.application.service.gen.GenTableService;

import java.util.List;

@RestController
@RequestMapping("/api/gen")
public class GenController {

    private GenTableService genTableService;

    @PostMapping("/sync-db")
    public void syncDb(List<String> tableNames) {

        genTableService.syncDb(tableNames);
    }
}
